<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>账户设置</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/layui/layui-v2.5.6/layui/css/layui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/self-center.css">

</head>
<body>
    <script src="${pageContext.request.contextPath}/plugins/layui/layui-v2.5.6/layui/layui.js" charset="utf-8"></script>
    <script src="${pageContext.request.contextPath}/plugins/jquery/jquery-3.4.1.js"></script>
    <script>
      layui.use(['form', 'element'], function(){
        var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块
        
        //监听导航点击
        element.on('nav(demo)', function(elem){
        //console.log(elem)
        layer.msg(elem.text());
        });
        });

      layui.use('layer', function(){ //独立版的layer无需执行这一句
          var $ = layui.jquery, layer = layui.layer; //独立版的layer无需执行这一句

          //触发事件
          var active = {
              setTop: function(){
                  var that = this;
                  //多窗口模式，层叠置顶
                  layer.open({
                      type: 2 //此处以iframe举例
                      ,title: '修改个人信息'
                      ,area: ['60%', '100%']
                      ,shade: 0
                      ,maxmin: true
                      ,content: '${pageContext.request.contextPath}/view/update-userInfo.jsp'
                  });
              },
          }

          $('#layerDemo .layui-btn').on('click', function(){
              var othis = $(this), method = othis.data('method');
              active[method] ? active[method].call(this, othis) : '';
          });
      });
    </script>
    <div id="outer">
        <div class="nav">
            <div>
            <i class="layui-icon layui-icon-home" style="font-size: 20px; color: gray;"></i> 
            <a href="../index.jsp">店铺首页</a>
            <i class="layui-icon layui-icon-location" style="font-size: 20px; color: gray;"></i>
            安徽
                <div class="nav2">
                    <span class="layui-breadcrumb" lay-separator="|" style="float: right;margin-right: 20px;">
                       <a href="${pageContext.request.contextPath}/view/self-center.jsp">个人中心</a>
                        <a href="${pageContext.request.contextPath}/view/order.jsp" style="padding-left:20px ;">我的订单</a>
                        <a href="${pageContext.request.contextPath}/view/collect.jsp" style="padding-left:20px ;">我的生鲜</a>
                        <a href="${pageContext.request.contextPath}/view/seckile.jsp" style="padding-left:20px ;">限时秒杀</a>
                        <a href="${pageContext.request.contextPath}/view/forum.jsp" style="padding-left:20px ;">好物推荐</a>
                    </span>              
                </div>
            </div>
        </div>
    </div>
    <div class="nav-logo">
        <div class="search">
            <div class="navf">
            </div>

            <div class="navt">
                <span id="parent">
                    <span class="c1"></span>
                    <span>
                        <input type="text" id="search">
                    </span>
                    <span>
                        <button class="bsou">搜索</button>
                    </span>
                </span>
            </div>

            <div class="cart">
                <div class="cart-f">
                <a href="#" class="layui-btn layui-btn-primary" style="color: honeydew;background-color: green;">购物车</a>
                </div>
           </div>
        </div>
    </div>
    <div class="nav-body">
        <div class="w layui-row">
            <div class="meun layui-col-md2">     
                <ul class="layui-nav layui-nav-tree layui-inline nav-meun" lay-filter="demo">
                    <li class="layui-nav-item"><a href="${pageContext.request.contextPath}index">首页</a></li>
                    <li class="layui-nav-item"><a href="${pageContext.request.contextPath}/user-info">个人信息</a></li>
                    <li class="layui-nav-item"><a href="${pageContext.request.contextPath}/address">收货地址</a></li>
                    <li class="layui-nav-item"><a href="">账户安全</a></li>
                    <li class="layui-nav-item"><a href="">我的尺码</a></li>
                    <li class="layui-nav-item"><a href="">账号绑定</a></li>
                    <li class="layui-nav-item"><a href="">邮件订阅</a></li>
                    <li class="layui-nav-item"><a href="">支付方式</a></li>
                    <li class="layui-nav-item"><a href="">更多</a></li>
                </ul>
            </div>

            <div class="main layui-col-md10">
                <div>
                    <ul class="layui-nav" lay-filter="" style="background-color: #9999">
                        <li class="layui-nav-item layui-this"><a href="">基本信息</a></li>
                        <li class="layui-nav-item"><a href="">头像照片</a></li>
                        <li class="layui-nav-item"><a href="">更多个人信息</a></li>
                    </ul>
                </div>

                <div class="main-two layui-form" style="margin-top: 15px;background-color: #9999;padding: 20px;">
                    <div class = "item">
                        <span class="item-label">
                            用户名：
                        </span>
                        <div class="item-f">
                            ${loginUserName}
                        </div>
                    </div>

                    <div class = "item" style="height: 100px;">
                        <span class="item-label">头像：</span>
                        <div class="item-f">
                            <img src="${pageContext.request.contextPath}/img/${userInfo.headImg}" style="height: 80px;width: 80px">
                        </div>
                    </div>

                    <div class = "item">
                        <span class="item-label">昵称：</span>
                        <div class="item-f">
                            ${userInfo.otherName}
                        </div>
                    </div>
                    <div class = "item">
                        <span class="item-label">性别：</span>
                        <div class="item-f">
                            ${userInfo.sex}
                        </div>
                    </div>
                    <div class = "item">
                        <span class="item-label">生日：</span>
                        <div class="item-f">
                            ${userInfo.birthday}
                        </div>
                    </div>
                    <div class = "item">
                        <span class="item-label">电话号码：</span>
                        <div class="item-f">
                            ${userInfo.phone}
                        </div>
                    </div>
                    <div class = "item" style="height: 100px;">
                        <span class="item-label">兴趣爱好：</span>
                        <div class="item-f">
                            ${userInfo.hobby}
                        </div>
                    </div>


                    <div class="layui-form" id="layerDemo" >
                        <div class = "item">
                            <div class="item-f">
                                <div class="site-demo-button">
                                    <button class="layui-btn" data-method="setTop" >修改个人信息</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>

    <div class="bott">
        <div class="bott-f">
            <div class="layui-row">
                <div class="layui-col-md3">
                    <div style="font-size: 10px;">
                        <li><img src="../img/duo.png" alt="">品类齐全,轻松购物</li>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div style="font-size: 10px;">
                        <li><img src="../img/kuai.png" alt="">多仓直发,极速配送</li>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div style="font-size: 10px;">
                        <li><img src="../img/hao.png" alt="">正品行货,精致服务</li>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div style="font-size: 10px;">
                        <li><img src="../img/sheng.png" alt="">天天低价,畅选无忧</li>
                    </div>
                </div>
            </div>
            <hr>
            <div class="layui-row" style="margin-top: 15px;">
                <div class="layui-col-md3">
                    <div>
                        <dt>购物指南</dt>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">购物流程</a>
                        </dd>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">会员介绍</a>
                        </dd>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">常见问题</a>
                        </dd>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">热销商品</a>
                        </dd>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">联系客服</a>
                        </dd>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div>
                        <dt>配送方式</dt>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">上门自提</a>
                        </dd>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">211限时达</a>
                        </dd>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">配送服务查询</a>
                        </dd>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">配送费收取标准</a>
                        </dd>
                        <dd>
                            <a class="dd" target="_blank" href="#">海外配送</a>
                        </dd>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div>
                        <dt>支付方式</dt>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">货到付款</a>
                        </dd>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">在线支付</a>
                        </dd>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">分期付款</a>
                        </dd>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">公司转账</a>
                        </dd>
                    </div>
                </div>
                <div class="layui-col-md3">
                    <div>
                        <dt>售后服务</dt>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">售后政策</a>
                        </dd>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">价格保护</a>
                        </dd>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">退款说明</a>
                        </dd>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">返修/退换货</a>
                        </dd>
                        <dd>
                            <a class="dd" rel="nofollow" target="_blank" href="#">取消订单</a>
                        </dd>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>